import {createStore} from "vuex";

const store  = createStore({
    state () {
      return {
        show:false,//状态栏是否显示
        title: "浙江开放大学数字孪生校园",
        count:0
      }
    },
    mutations: {
      increment (state) {
        state.count++
      },
      setTitle(state,value)
      {
          state.title = value;
      },
      setShow(state,value)
      {
        state.show = value;
      }
    }
  })


  export { store };